PROJECT_HOME=../../
taskOBJS=  kaapiTask.o\
     $(PROJECT_HOME)/online-certifier/user-functions/*.o 

dataProxyOBJS= dataProxy.o\
			   $(PROJECT_HOME)/online-certifier/communicator/communicatorUtil.o\
			   $(PROJECT_HOME)/online-certifier/communicator/dataProxyCommunicator.o

LFLAGS=$(ATHAPASCAN1_LDFLAGS) $(Linbox)
CXXFLAGS=$(ATHAPASCAN1_CPPFLAGS) $(Linbox_c) -I$(PROJECT_HOME) -c -g #-Wall -O3 -m64 


CC= g++

All: kaapiTask dataProxy

dataProxy: $(dataProxyOBJS)
	$(CC) -o dataProxy $(dataProxyOBJS)
	cp dataProxy ../bin/
	cp dataProxy.conf ../bin/

dataProxy.o: dataProxy.cpp 
	$(CC) $(CXXFLAGS) dataProxy.cpp


kaapiTask: $(taskOBJS)
	$(CC) -o  kaapiTask $(taskOBJS) $(LFLAGS)
	cp kaapiTask ../bin/

kaapiTask.o: kaapiTask.cpp
	$(CC) $(CXXFLAGS) kaapiTask.cpp 

test:
	./kaapiTask ../data/task/ 0 128 8  determinant ../data/100_100
ptest:
	./dataProxy 9999 $(HOME)/online-certifier/data/task/
	
clean:
	rm -f *.o *.gch kaapiTask dataProxy
